package com.ranjiaqi.testenum;

import org.junit.Test;

import java.util.Arrays;

/**
 * @ClassName TestMain
 * @Description TODO
 * @Author hp
 * @Date 2021/7/5 18:15
 * @Version 1.0
 **/
public class TestMain {
    public static void main(String[] args) {

    }

    @Test
    public void TestPerson(){
        Person p = Person.CHINESE;
        System.out.println("p = " + p);
    }
    @Test
    public void testColor(){
        Color c = Color.GREEN;
        System.out.println("c.ordinal() = " + c.ordinal());
        System.out.println("c.name() = " + c.name());
        Color[] values = Color.values();
        System.out.println("Arrays.toString(values) = " + Arrays.toString(values));
    }
}
